package com.chatify.app;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;

public class BaseActivity extends Activity {
	    
	        ImageView image;
	        LinearLayout linBase;
	   
	       public void onCreate(Bundle savedInstanceState) {
	            super.onCreate(savedInstanceState);
	            
	         //   super.setContentView(R.layout.masterbase);
	           //linBase = (LinearLayout)findViewById(R.id.linBase);
	           
	     }
	       
	       @Override
	       public void setContentView(int id) {
	           LayoutInflater inflater = (LayoutInflater)getBaseContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
	           inflater.inflate(id, linBase);
	       }
	      
	       public String getEditTextValue(int idt)
	       {
	    	   EditText edt=(EditText)findViewById(idt);
	    	   return edt.getText().toString();
	       }
	   }